$(window).ready(function() {
	var galleryThumbs = new Swiper('.details-small', {
		spaceBetween: 10,
		slidesPerView: 4,
		freeMode: true,
		watchSlidesVisibility: true,
		watchSlidesProgress: true,
	});
	var galleryTop = new Swiper('.details-banner', {
		spaceBetween: 10,
		navigation: {
			nextEl: '.swiper-button-next',
			prevEl: '.swiper-button-prev',
		},
		thumbs: {
			swiper: galleryThumbs
		}
	});
	$(".details-small .swiper-slide").hover(function() {
		$(this).click();
		$(this).css('border-color', 'red');
	}, function() {
		$(this).css('border-color', 'transparent');
	});
});
